package com.chinaums.itp.demo;

import com.chinaums.itp.client.ItpMessage;
import com.chinaums.itp.client.ResponseCallback;
import org.springframework.stereotype.Component;

/**
 * Created on 2014/10/21.
 *
 * @author YaoFeng
 */
@Component
public class DefaultCallback implements ResponseCallback {

	@Override
	public void handleResponse(final ItpMessage response) {
		System.out.printf("【异步通知】%n%s%n", MessageUtils.formatMessage(response));
	}
}
